package com.uday.kraterchat.chatclient.command
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.uday.kraterchat.chatclient.business.ChatServiceDelegate;
	import com.uday.kraterchat.chatclient.control.SendMsgEvent;
	
	import mx.rpc.IResponder;

	public class SendMessageCommand implements ICommand, IResponder
	{
		public function SendMessageCommand()
		{
		}

		public function execute(event:CairngormEvent):void
		{
			var objChatServiceDelegate:ChatServiceDelegate = new ChatServiceDelegate(this);
			objChatServiceDelegate.sendMessage((event as SendMsgEvent).objMessageItem);
		}
		
		public function result(data:Object):void
		{
		}
		
		public function fault(info:Object):void
		{
		}
		
	}
}